ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign
AM_CPPFLAGS=-I$(srcdir)/.. $(all_includes)

noinst_PROGRAMS = MutexPhilosophers TestEvents TestInitializers

MutexPhilosophers_SOURCES = ../Tests/MutexPhilosophers.c
MutexPhilosophers_LDADD = libPlatform.la

TestEvents_SOURCES = ../Tests/TestEvents.c
TestEvents_LDADD = libPlatform.la

TestInitializers_SOURCES = ../Tests/TestInitializers.c
TestInitializers_LDADD = libPlatform.la

lib_LTLIBRARIES = libPlatform.la
libPlatform_la_SOURCES = ../POSIX/Event.c ../POSIX/Locks.c ../POSIX/ThreadLocals.c ../POSIX/Threads.c ../Platform/Initializers.c ../Platform/SpinLocks.c
libPlatform_la_LDFLAGS = -version-info 0:1:0

library_includedir=$(includedir)/Platform
library_include_HEADERS=../Platform/Atomics.h ../Platform/Events.h ../Platform/Initializers.h ../Platform/Locks.h ../Platform/Platform.h ../Platform/PlatformExport.h ../Platform/ThreadLocals.h ../Platform/Threads.h